home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr25 / gg243774.zip / RECORD.ZIP / RECFLDER.MAK < prev    next >
Text File  |  1992-04-08  |  2KB  |  70 lines

  1. #****************************************************************************
  2. #  Dot directive definition area (usually just suffixes)
  3. #****************************************************************************
  4.  
  5. .SUFFIXES: .c .obj .dll .csc .sc .h .ih .ph .psc .rc .res
  6.  
  7. #****************************************************************************
  8. #  Environment Setup for the component(s).
  9. #****************************************************************************
  10.  
  11. SOMTEMP = .\somtemp
  12. SCPATH  = C:\toolkt20\sc
  13. HPATH   = C:\toolkt20\c\os2h
  14. LIBPATH = C:\toolkt20\os2lib
  15.  
  16. !if [set SMINCLUDE=.;$(SCPATH);] || \
  17.     [set SMTMP=$(SOMTEMP)] || \
  18.     [set SMEMIT=ih;h;ph;psc;sc;c;def]
  19. !endif
  20.  
  21. !if [cd $(SOMTEMP)]
  22. !  if [md $(SOMTEMP)]
  23. !    error Error creating $(SOMTEMP) directory
  24. !  endif
  25. !else
  26. !  if [cd ..]
  27. !    error Error could not cd .. from $(SOMTEMP) directory
  28. !  endif
  29. !endif
  30.  
  31. #
  32. # Compiler/tools Macros
  33. #
  34.  
  35. CC         = icc /c /Ge- /Gd- /Se /Re /ss /Ms /Gm+
  36. LINK       = link386
  37. LDFLAGS    = /noi /map /nol /nod /exepack /packcode /packdata /align:16
  38. LIBS       = som.lib os2386.lib dde4sbs.lib dde4nbs.lib
  39.  
  40. #****************************************************************************
  41. # Set up Macros that will contain all the different dependencies for the
  42. # executables and dlls etc. that are generated.
  43. #****************************************************************************
  44.  
  45. OBJS       = recflder.obj
  46.  
  47. #****************************************************************************
  48. #   Setup the inference rules for compiling source code to
  49. #   object code.
  50. #****************************************************************************
  51.  
  52. .c.obj:
  53.         $(CC) -I$(HPATH) -c $<
  54.  
  55. .csc.c:
  56.         sc  $<
  57.  
  58. all: recflder.dll
  59.  
  60. recflder.obj: $*.c $*.ih $*.h  $*.sc
  61.  
  62. recflder.dll: $(OBJS) recflder.res
  63.          $(LINK) $(LDFLAGS) $(OBJS),$@,,$(LIBS),$*;
  64.          rc $*.res $*.dll
  65.          mapsym recflder.map
  66.  
  67. recflder.res: recflder.rc
  68.          rc -r $*.rc $*.res
  69.  
  70.